var db = require("../db");

var Schema = db.Schema; //空的模板

var leaveinfo = new Schema({
    userid: String,
    username: String,
    reason: String,
    start: Date,
    end: Date,
    attach: String, //附件 图片
    leavetype: Number, //1:待审批  2:已审批 3:拒绝
});

module.exports = db.model("leaveinfo", leaveinfo);